const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  // 建立token的快捷访问
  token: state => state.user.token,
  avatar: state => state.user.avatar,
  name: state => state.user.name,
  routes: state => state.permission.routes // 导出当前的路由
}
export default getters
